package com.woniuxy.woniumall.mapper;

import com.woniuxy.woniumall.entity.Order;
import com.woniuxy.woniumall.vo.OrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    Order selectByPrimaryKey(Integer id);

    List<Order> selectAll();

    int updateByPrimaryKey(Order record);

    List<OrderVo> selectOrderByUser(@Param("name") String name, @Param("userid") int userid);
}